package beans;

import java.math.BigDecimal;
import java.util.Date;

public class ExpenseRecord {
    private int expenseID;
    private String date;
    private String cardID;
    private String type;
    private String description;
    private BigDecimal amount;
    private int approvedBy;
    private String status; // 添加状态字段用于前端显示

    // 构造方法
    public ExpenseRecord() {
    }

    public ExpenseRecord(int expenseID, String date, String cardID, String type,
                         String description, BigDecimal amount, int approvedBy, String status) {
        this.expenseID = expenseID;
        this.date = date;
        this.cardID = cardID;
        this.type = type;
        this.description = description;
        this.amount = amount;
        this.approvedBy = approvedBy;
        this.status = status;
    }

    // Getter和Setter方法
    public int getExpenseID() {
        return expenseID;
    }

    public void setExpenseID(int expenseID) {
        this.expenseID = expenseID;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getCardID() {
        return cardID;
    }

    public void setCardID(String cardID) {
        this.cardID = cardID;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public int getApprovedBy() {
        return approvedBy;
    }

    public void setApprovedBy(int approvedBy) {
        this.approvedBy = approvedBy;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
